
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
次に、鍵の流さを聞かれます。選択の目安としては、1024 は短かすぎるので NG、デフォルトの 2048 はまぁ OK、
計算機資源が余っているなら 4096 もアリ、といったところでしょうか。
この例では、そのまま enter を押して、デフォルトの 2048 としています。
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0)
Key does not expire at all
Is this correct? (y/N) y
次は、鍵の有効期限を選びます。私の場合、最初ここをどうするべきか困ったところですが、これまで keysign し
てもらった方々のを見る限り、期限なしで問題ないようです。
というわけで、そのまま enter を押して、確認にも y と答えます。
You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
"Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Real name: KURASHIKI Satoru
Email address: lurdan@gmail.com
Comment:
ここでは、自分の個人情報を設定します。keysign などでは、公的な証明書とのつきあわせを行いますので、その
時に確認できる本名を入力する必要があります。このあたり、日本のネットワーク文化とはいまひとつ馴染みがよく
ないかも知れませんね。
GPG 鍵では、一つの ID に対して複数のメールアドレスを設定することができるので、Comment でそれを明示
することができます。
You selected this USER-ID:
"KURASHIKI Satoru <lurdan@gmail.com>"
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? O
最終的に、ユーザ ID がこうなりますよ、という確認です。問題ないので O と入力します。
You need a Passphrase to protect your secret key.
Enter passphrase:
Repeat passphrase:
ここでパスフレーズを確認含めて 2 回入力します。パスフレーズには流さの制限がないので、覚えやすい長さの英
文を使うといいのではないでしょうか。
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
.+++++++++++++++..++++++++++.++++++++++++++++++++++++++++++++++++++++.+++++++++++++++.+++++++++++++++.+++++.++
++++++++++++++++++.++++++++++>.++++++++++..............+++++
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 230 more bytes)
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
++++++++++......+++++..+++++.+++++.+++++.+++++..++++++++++.+++++.+++++++++++++++..+++++.++++++++++....+++++.++
+++++++++++++.++++++++++.++++++++++.+++++..+++++++++++++++..+++++>.++++++++++...>.+++++.......................
..............................................................................................................
...............+++++^^^^^
パスフレーズを入力した後は、乱数の生成のために、ブラウザでも開いて適当に別の作業をします。そろそろいい
かな、と元の画面に戻ると……
10